package org.ninjarope.cinderstained.android;

import org.ninjarope.cinderstained.main.TowerDefenseMain;

import android.os.Bundle;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.badlogic.gdx.backends.android.surfaceview.FillResolutionStrategy;

public class AndroidStarter extends AndroidApplication {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		final AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();		
		config.resolutionStrategy = new FillResolutionStrategy();
		config.useAccelerometer = true;
		config.useGL20 = false;		
		config.touchSleepTime = 20;		
		initialize(new TowerDefenseMain(), config);
	}
}